package cn.wsn2018.tools.common;

/**
 * 将常用字符串作为静态常量放置此处,避免使用硬编码的不良习惯
 */
public class CommonValue {
    //用户登录
    public static final String REQUEST_MAPPING_LOGIN="/login";
    //用户注册
    public static final String REQUEST_MAPPING_REGIST="/regist";
    //根据协议名罗列协议字段
    public static final String REQUEST_MAPPING_LISTFIELDS="/listFields";
    //罗列并展示安全模板
    public static final String REQUEST_MAPPING_LISTMODELS="/listModels";
    //罗列并展示安全建议
    public static final String REQUEST_MAPPING_LISTRECOMMENDS="/listRecommends";
    //保存字段设计配置信息
    public static final String REQUEST_MAPPING_SAVEFIELDDESIGNS="/saveFieldDesigns";
    //预览协议字段设计效果
    public static final String REQUEST_MAPPING_REVIEWDESIGN="/reviewDesign";
    public static final String REQUEST_PARAM_USERNAME="username";
    public static final String REQUEST_PARAM_PASSWORD="password";
    public static final String REQUEST_PARAM_PROTOCOLNAME="protocolName";
    public static final String JSON_INSERT_SUCCESS="保存成功";
    public static final String JSON_INSERT_REGIST_FAILED="注册失败，用户已存在";
    public static final String JSON_INSERT_REGIST_SUCCESS="注册成功";
    public static final String JSON_QUERY_SUCCESS="查询成功";
    public static final String JSON_QUERY_FAILED="查询失败，系统内部异常";
    public static final String JSON_QUERY_LOGIN_SUCCESS="登录成功";
    public static final String JSON_QUERY_LOGIN_FAILED="用户名或密码错误";
    public static final String JSON_QUERY_FIELDS_FAILED="无法查询到该协议的字段";
    public static final String JSON_QUERY_RECOMMENDS_FAILED="无法查询到该协议的安全建议";
}
